﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ResetPass.aspx.cs" Inherits="ProjectX.ResetPass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/WebCss/base.css" rel="stylesheet" type="text/css" />
    <link href="/WebCss/regandlog.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/ClientJs/jquery.js"></script>
    <title></title>
    <style type="text/css">
        #repassdiv
        {
            width:480px;
            height:180px;
            position:absolute;
            left:65px;
            top:110px;
        } 
        .divbody
        {
            background:url("/Webimg/repass.png") no-repeat;  
        }   
        td
        {
            width:160px;
        }   
        input[type="password"]
        {
            width:160px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("input:text:first").focus();
            $(document).keydown(function () {
                if (event.keyCode == 13) {
                    $("#enter").click();
                }
            });
        });
    </script>
</head>
<body>
    <div class="divbody">
        <form id="form1" runat="server">
        <div class="reglogdiv">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <thead>
                    <tr>
                        <td colspan="3" align="center" style="width:480px;padding-bottom:15px;">
                            <h3>请输入您的新密码</h3>
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <span>新密码</span>
                        </td>
                        <td>
                            <asp:TextBox ID="newpass" runat="server" TextMode="Password" 
                                CssClass="maintextcss" MaxLength="50"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="newpassValidator" runat="server" 
                                ErrorMessage="请输入新密码" CssClass="error" ControlToValidate="newpass" 
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>重复密码</span>
                        </td>
                        <td>
                            <asp:TextBox ID="renewpass" runat="server" TextMode="Password" 
                                CssClass="maintextcss" MaxLength="50"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="renewpassValidator" runat="server" 
                                ErrorMessage="请输入重复密码" ControlToValidate="renewpass" CssClass="error" 
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="3" align="center" style="width:480px;padding-top:15px;">
                            <asp:ImageButton ID="enter" runat="server" ImageUrl="~/Webimg/enter.png" 
                                onclick="enter_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="center" style="width:480px;padding-top:5px;">
                            <asp:Panel ID="Panel1" runat="server" ForeColor="#666666" Visible="false">
                                密码修改已成功，请重新
                                <asp:HyperLink ID="loginlink" runat="server" NavigateUrl="~/login.html">登录</asp:HyperLink>
                            </asp:Panel>
                        </td>
                    </tr>
                </tfoot>
            </table>
            </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="enter" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
        </form>
    </div>
</body>
</html>
